import wx

class FrogPanel(wx.Panel):
    def __init__(self, parent):
        super(FrogPanel, self).__init__(parent)
        self.Bind(wx.EVT_PAINT, self.OnPaint)

    def OnPaint(self, event):
        dc = wx.PaintDC(self)
        dc.SetBrush(wx.Brush(wx.Colour(0, 128, 0)))  # 设置绿色画刷
        dc.SetPen(wx.Pen(wx.Colour(0, 0, 0), 1))     # 设置黑色画笔

        # 绘制青蛙的身体
        dc.DrawEllipse(50, 50, 200, 150)

        # 绘制青蛙的眼睛
        dc.SetBrush(wx.Brush(wx.Colour(255, 255, 255)))  # 设置白色画刷
        dc.DrawCircle(100, 80, 20)  # 左眼
        dc.DrawCircle(200, 80, 20)  # 右眼

        # 绘制青蛙的瞳孔
        dc.SetBrush(wx.Brush(wx.Colour(0, 0, 0)))  # 设置黑色画刷
        dc.DrawCircle(100, 80, 10)  # 左眼瞳孔
        dc.DrawCircle(200, 80, 10)  # 右眼瞳孔

        # 绘制青蛙的嘴巴
        dc.SetPen(wx.Pen(wx.Colour(0, 0, 0), 3))  # 设置黑色画笔
        dc.DrawArc(100, 150, 200, 150, 150, 130)  # 绘制弧形作为嘴巴

class FrogFrame(wx.Frame):
    def __init__(self):
        super(FrogFrame, self).__init__(None, title="青蛙图案", size=(300, 250))
        self.panel = FrogPanel(self)
        self.Centre()
        self.Show()

if __name__ == "__main__":
    app = wx.App(False)
    frame = FrogFrame()
    app.MainLoop()
